public class Student {
    public int age;
    public String name;
    public static String classes;

    {
        name = "大黄";

        System.out.println("实例化代码块");
    }

    static {
        classes = "Bit Java";

        System.out.println("静态代码块");
    }

    public Student() {
        System.out.println("构造方法");
    }

    public static void main(String[] args) {
        Student student1 = new Student();
        System.out.println("---------");
        student1.age = 10;
    }
}
